package com.ruoyi.cems.domain.dto;

import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;

@Data
public class OrgUser {
    private String idt_user__mobile;
    private String app_account__id;
    private String idt_user__user_email;
    private String idt_user__work_no;
    private String request_log__action_desc;
    private String app_account__account_no;
    private String idt_user__email;
    private int request_log__action_flag;
    private String app_account__account_name;
    private int idt_user__gender;

    public SysUser transformSysUser(){
        SysUser sysUser = new SysUser();
        sysUser.setName(this.app_account__account_name);
        sysUser.setUserName(this.idt_user__work_no);
        sysUser.setEmail(this.idt_user__email);
        sysUser.setJobNumber(this.idt_user__work_no);
        sysUser.setPhonenumber(this.idt_user__mobile);
        sysUser.setSex(this.idt_user__gender+"");
        return sysUser;
    }
}
